package com.fyh.feign;

import com.fyh.entity.common.Result;
import com.fyh.entity.user.Vitae;
import com.fyh.feign.fallback.EmployerCandidateFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-candidate", fallback = EmployerCandidateFeignClientFallback.class, path = "/candidate")
public interface EmployerCandidateFeignClient {
    /**
     * 获取简历详情
     *
     * @param userId
     * @return
     */
    @GetMapping("/getUserVitae")
    Result<Vitae> getUserVitae(@RequestParam("userId") Long userId);

    /**
     * 获取用户技能标签
     *
     * @param userId
     * @return
     */
    @GetMapping("/getTagNameListByUserId")
    Result<List<String>> getTagNameListByUserId(@RequestParam("userId") Long userId);
}
